using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NTTHAO.CommonWeb;
using NTTHAO.Web.BL.Product;

public partial class admin_webparts_Plug_ins_Product_ProductTypeList : System.Web.UI.UserControl
{
    public string _ReturnURL = "?";
    protected void Page_Load(object sender, EventArgs e)
    {
        _ReturnURL = "?type=" + Request.QueryString["type"];

        try
        {
            int langID = LanguageUtility.GetLanguageID(Request, Session);
            int siteID = WebGlobal.GetSite().ID;

            DataTable tb = ProductGroup.GetAll(siteID, langID);

            if (tb != null && tb.Rows.Count > 1)
            {
                _ReturnURL += "&name=" + Request.QueryString["name"];
            }
        }
        catch (Exception)
        {
        }
    }
}
